/*
 * @Author: Liyaofei
 * @Date: 2018-09-12 09:35:49
 * @Last Modified by: Liyaofei
 * @Last Modified time: 2018-09-13 13:49:53
 */

(function flexible(window, document) {
  const setRemUnit = () => {
    let rem = document.documentElement.clientWidth / 10;
    rem > 75 && (rem = 75);
    document.documentElement.style.fontSize = `${rem}px`;
  };
  setRemUnit();
  window.onresize = setRemUnit;
}(window, document))
